package com.cosc.apgs.param.service.impl;

import com.cosc.apgs.param.entity.CoscSystemSelect;
import com.cosc.apgs.param.entity.CoscTradeCodeInfo;
import com.cosc.apgs.param.mapper.CoscSystemSelectMapper;
import com.cosc.apgs.param.mapper.CoscTradeCodeInfoMapper;
import com.cosc.apgs.param.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Howl-Xu
 * @version 1.0.0
 * @Description:  公共服务提供实现类
 * @createTime 2020年11月18日 10:41:00
 */
@Service
public class CommonServiceImpl implements CommonService {

    @Autowired
    private CoscSystemSelectMapper systemSelectMapper;

    @Autowired
    private CoscTradeCodeInfoMapper tradeCodeMapper;

    @Override
    public List<CoscSystemSelect> getSystemList() {
        return systemSelectMapper.getSystemList();
    }

    @Override
    public List<CoscTradeCodeInfo> getTradeCodeList(String systemIndex) {
        return tradeCodeMapper.getTradeCodeList(systemIndex);
    }

    @Override
    public List<CoscTradeCodeInfo> getTradeCodeInfoList(String systemIndex) {
        return tradeCodeMapper.getTradeCodeInfoList(systemIndex);
    }

    @Override
    public CoscTradeCodeInfo getTradeCodeInfo(String systemIndex, String tradeCodeIndex) {
        return tradeCodeMapper.getTradeCodeInfo(systemIndex, tradeCodeIndex);
    }
}
